Repository navigation
fullroot: iTunes_Control for MusicLibrary (Settings abort on 24B156) - #381
Merged
Merged
Conversation
…y mobile MusicLibrary raises an Objective-C exception when a database connection cannot be opened and /private/var/mobile/Media/iTunes_Control does not exist (ML3DatabaseConnectionCheckPathiTunesControl, 24B156). A restore makes the directory on an iPhone; this port never restores, so no iOS 27 root had it. -[ML3MusicLibrary libraryUID] rethrows through databaseConnectionAllowingWrites:withBlock: and Settings aborts on 24B156 with that stack; atc aborts the same way on 24A446 and 24B156. The new step 45-media-library.sh makes iTunes_Control, iTunes/ and Music/ owned by mobile (501). It is on by default because it corrects a directory every iPhone has; ENABLE_MEDIA_LIBRARY_DIRS=0 turns it off. check-root.sh says whether the directory is there. Not run on a phone.
The ten frames of the Settings abort on 24B156, symbolicated: an Objective-C exception rethrown from -[ML3MusicLibrary libraryUID] through databaseConnectionAllowingWrites:withBlock:, and MusicLibrary's path checks that raise it when iTunes_Control is missing. What was ruled out, what differs from 24A446, the separate extension aborts and the blank Bluetooth page. The test boot has not been run.
Phone 1, owner image o272 without camera arguments, root v9: Settings aborted with the same ten frames one second after General > About was tapped. The fix has still not been run on a phone.
claudiusthebot
marked this pull request as ready for review
November 18, 2026 17:20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Settings (
Preferences) aborts on iOS 27.2.1 (24B156) on phone 1. The console's ten frames, symbolicated against 24B156's shared cache, show an Objective-C exception that nothing catches. It is rethrown from-[ML3MusicLibrary libraryUID]→valueForDatabaseProperty:→databaseConnectionAllowingWrites:withBlock:and ends inabort().MusicLibrary raises that exception when it cannot open a database connection and one of its path checks fails. The check that fails here is
ML3DatabaseConnectionCheckPathiTunesControl(reason"<path> does not exist.")./private/var/mobile/Media/iTunes_Controlis missing on both the 24B156 root and the 24A446 root: an iPhone gets it from a restore, and this port never restores. atc aborts with the same frames 8 to 17 times a boot on both builds. That is the cause already noted inUI-NIGHT-1114.md; its fix (70-ui-stability.sh) was never part of the full-root build.tools/ios27/fullroot/steps.d/45-media-library.sh: new step that makesiTunes_Control,iTunes/andMusic/, mode 0755, owned by mobile (501). It is on by default because it puts back a directory every iPhone has.ENABLE_MEDIA_LIBRARY_DIRS=0turns it off.undoremoves the directories only when they are empty.check-root.sh: aninfoline that says whether the directory is there.docs/ios27/SETTINGS.md: the symbolicated frames, MusicLibrary's checks, what was ruled out (the camera work, a memory fault, stand-ins), what differs from 24A446, and two separate problems: the PlugInKitcheckEnvironment:aborts of the app extensions and the blank Bluetooth page.Not run on a phone yet. The test boot (the step applied to the current root, owner image o272) is queued with the phone tester. If Settings still aborts with the same frames, the next check in MusicLibrary's order is the database file. The next test then is to put
com.apple.medialibrarydback (it is a speed trim), and SETTINGS.md says so.Not tested: a full root build with the step. The step was run on a scratch tree as a non-root user: it creates the directories, a second run changes nothing,
undoremoves them andENABLE_MEDIA_LIBRARY_DIRS=0skips it.docs-checkandprovenance-checkpass. Nothing touches the kernel,drivers/or the xnu fork.🤖 Generated with Claude Code